Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

feature/settings/src/commonMain/kotlin/org/meshtastic/feature/settings/radio/RebootBehavior.kt 2d20cd8a4708e2ef66e98d5259f3a97ec93f240a (2d20cd8a) Text, 1.63 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.settings.radio

T8b949e/**
* How the firmware applies a saved config section (firmware `AdminModule::handleSetConfig` / `handleSetModuleConfig`):
* most sections are applied with a node reboot a few seconds after the save is acked.
*
* This map is deliberately COARSE — the firmware's reboot decision is field-level for some sections and changes between
* releases, so the app only distinguishes "will restart", "may restart", and "never restarts". Bias toward
* [MAY_RESTART] when unsure; claim [ALWAYS] only for sections that have rebooted across firmware generations.
*/
Tff7b72enum Tff7b72class T56d364RebootBehavior Tb4b4b4{
T8b949e/** The firmware applies this section with a reboot; the save UI says "Save & restart". */
Te6edf3ALWAYSTb4b4b4,

T8b949e/** The firmware reboots only when specific fields change; the save UI keeps the softer "may reboot" copy. */
Te6edf3MAY_RESTARTTb4b4b4,

T8b949e/** Applied live — no reboot, no warning. */
Te6edf3NEVERTb4b4b4,
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s